<?
include "include/config.php";
if(!isset($_SESSION['_user']))
{ 
header("location: login.php");
}
if ( $_SESSION['_user']['level'] != 0 ) {
header("location: index.php"); }


$result=mysql_query("select * from locatii where id='".$_GET['id']."' ");
$idr=mysql_result($result,0,'id_parent');

stergere_arbore($_GET['id']);
header("location: locatii.php?id=$idr"); 
?>